1#!/bin/sh 2#******************************************************************************* 3# Copyright (c) 2000, 2011 IBM Corporation and others. 4# 5# This program and the accompanying materials 6# are made available under the terms of the Eclipse Public License 2.0 7# which accompanies this distribution, and is available at 8# https://www.eclipse.org/legal/epl-2.0/ 9# 10# SPDX-License-Identifier: EPL-2.0 11# 12# Contributors: 13# IBM Corporation - initial API and implementation 14#******************************************************************************* 15 16cd `dirname $0` 17 18if [ -d /System/Library/Frameworks/JavaVM.framework/Headers ]; then 19 export CFLAGS_JAVA_VM="-I /System/Library/Frameworks/JavaVM.framework/Headers" 20else 21 export CFLAGS_JAVA_VM="-I $(/usr/libexec/java_home)/include -I $(/usr/libexec/java_home)/include/darwin" 22fi 23 24if [ "x${MODEL}" = "xx86_64" ]; then 25 export ARCHS="-arch x86_64" 26 if [ "x${OUTPUT_DIR}" = "x" ]; then 27 export OUTPUT_DIR=../../../org.eclipse.swt.cocoa.macosx.x86_64 28 fi 29fi 30 31export MACOSX_DEPLOYMENT_TARGET=10.10 32 33make -f make_macosx.mak $1 $2 $3 $4 $5 $6 $7 $8 $9 34